import 'package:flutter/material.dart';
import 'package:flutter_web/controller/right_class_controller.dart';
import 'package:flutter_web/page/widget/right_list_widget.dart';
import 'package:get/get.dart';

import 'widget/search_widget.dart';

class RightContentWidget extends StatefulWidget {
  const RightContentWidget({Key key}) : super(key: key);

  @override
  _RightContentWidgetState createState() => _RightContentWidgetState();
}

class _RightContentWidgetState extends State<RightContentWidget> {
  RightClassController _rightClassController = Get.put(RightClassController());
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          // 搜索框
          SearchWidget(),
          // 第二行分类
          RightListWidget(title: "分类", list: _rightClassController.classList),
          // 第三行  专家解读
          RightListWidget(title: "专家", list: _rightClassController.proList),
        ],
      ),
    );
  }
}
